export function getChecked(state, checkNum, tagList, index, checkFondNum, tagFontList) {
	if (!state) {
		if (checkNum < 8) {
			tagList[index].state = !tagList[index].state
			checkNum = tagList.filter(v => v.state).length
		} else {
			if (tagList[index].state) {
				tagList[index].state = !tagList[index].state
				checkNum = tagList.filter(v => v.state).length
			} else {
				uni.showToast({
					title: '最多只能勾选8个标签!',
					icon: "none"
				})
			}

		}
	} else {
		if (checkFondNum < 8) {
			tagFontList[index].state = !tagFontList[index].state
			checkFondNum = tagFontList.filter(v => v.state).length
		} else {
			if (tagFontList[index].state) {
				tagFontList[index].state = !tagFontList[index].state
				checkFondNum = tagFontList.filter(v => v.state).length
			} else {
				uni.showToast({
					title: '最多只能勾选8个标签!',
					icon: "none"
				})
			}

		}
	}

	return [checkNum, checkFondNum]

}
